package com.gxsf.back.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.sql.Timestamp;

/**
 * @author BeijiRonin
 * @date 2020/11/12
 */
@Data
@Entity
/**
 * 图书馆
 */
@ApiModel("图书馆")
public class LibraryList {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public long id;
    @ApiModelProperty("图书馆名称")
    public String libraryName;
    @ApiModelProperty("图书馆位置")
    public String location;
    @ApiModelProperty("图书馆描述")
    public String message;
    public String img ="/images/sd.png" ;
    @CreatedDate
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Timestamp createTime;
    @LastModifiedBy
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Timestamp updateTime;
}
